<?php

namespace backend\models\course;

use Yii;

/**
 * This is the model class for table "{{%edu_course_joint}}".
 *
 * @property integer $joint_id
 * @property integer $section_id
 * @property integer $joint_num
 * @property string $joint_name
 * @property integer $joint_addtime
 */
class CourseJoint extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return '{{%course_joint}}';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['section_id', 'joint_num', 'joint_name', 'joint_addtime'], 'required'],
            [['section_id', 'joint_num', 'joint_addtime'], 'integer'],
            [['joint_name'], 'string', 'max' => 100]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'joint_id' => 'Joint ID',
            'section_id' => 'Section ID',
            'joint_num' => 'Joint Num',
            'joint_name' => 'Joint Name',
            'joint_addtime' => 'Joint Addtime',
        ];
    }
}
